<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>权限设置</title>

    <!-- Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="./../css/comm.css" rel="stylesheet">
    <link href="../css/permissionsMann.css" rel="stylesheet">

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <!-- begin header -->
    <header>
        <nav class="navbar navbar-default" >
          <ul class="nav nav-tabs nav-justified" style="width: 96%;margin: 0 auto">
            <li>
              <p class="glyphicon glyphicon-menu-left"></p>
            </li>
            <li><p>权限设置</p></li>
          </ul>
        </nav>
    </header>
    <!-- end header -->
    <!-- begin content -->
      <div class="content">
				    <div class="btn-group" >
							<button type="button" class="btn btn-default" id="addRole"><span></span><span>添加</span></button>
							<button type="button" class="btn btn-default" id="updateRole"><span></span><span>编辑</span></button>
						</div>
          	<table class="table roles-table">
          		<thead>
          			<tr>
          				<td>序号</td>
          				<td>登录名</td>
          				<td>用户角色</td>
          				<td>用户名</td>
          				<td>所属门诊</td>
          				<td></td>
          			</tr>
          		</thead>
          		<tbody>
          			<tr>
          				<td>01</td>
          				<td>篮子</td>
          				<td>女</td>
          				<td>含麻问诊/处方</td>
          				<td>张三</td>
          				<td><a href="javascript:void(0)">删除</a></td>
          			</tr>
          		</tbody>
          	</table>
						<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
								<div class="modal-dialog" role="document">
										<div class="modal-content">
												<div class="modal-header">
													<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
													<h4 class="modal-title" id="myModalLabel"></h4>
												</div>
												<div class="modal-body">
													
												</div>
												<div class="modal-footer">
													<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
													<button type="button" class="btn btn-primary">提交</button>
												</div>
										</div>
								</div>
						</div>
          </div>
      </div>
      <!-- end content -->
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <!-- 加载 Bootdiv class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="myModalLabel">Modal title</h4>
        </div>
        <div class="modal-body">
          ...
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <button type="button" class="btn btn-primary">Save changes</button>
        </div>
      </div>
    </div>
  </div>strap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
		<script type="text/javascript">
			$(function(){
				/* 添加角色权限 */
				$('#addRole').click(function(){
					$('#myModal').modal('show');
					$('#myModalLabel').html('添加角色权限');
					var formHTML='<form class="form-horizontal">'+
												'<div class="form-group">'+
													'<label for="inputEmail3" class="col-sm-2 control-label">登录名</label>'+
													'<div class="col-sm-10">'+
														'<input type="text" class="form-control" id="inputEmail3" >'+
													'</div>'+
												'</div>'+
												'<div class="form-group">'+
													'<label for="inputPassword3" class="col-sm-2 control-label">密码</label>'+
													'<div class="col-sm-10">'+
														'<input type="password" class="form-control" id="inputPassword3">'+
													'</div>'+
												'</div>'+
												'<div class="form-group">'+
													'<label class="col-sm-2 control-label">用户角色</label>'+
													'<div class="col-sm-10">'+
													'<select class="form-control">'+
														'<option>1</option>'+
														'<option>2</option>'+
														'<option>3</option>'+
														'<option>4</option>'+
														'<option>5</option>'+
													'</select>'+
													'</div>'+
												'</div>'+
												'<div class="form-group">'+
													'<label class="col-sm-2 control-label">用户名</label>'+
													'<div class="col-sm-10">'+
													'<select class="form-control">'+
														'<option>1</option>'+
														'<option>2</option>'+
														'<option>3</option>'+
														'<option>4</option>'+
														'<option>5</option>'+
													'</select>'+
													'</div>'+
												'</div>'+
											'</form>';
					$('.modal-body').html(formHTML);
				})
			})
		</script>
  </body>
</html>